package com.hermit.hermitmusicserver.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hermit.hermitmusicserver.dao.TestDao;
import com.hermit.hermitmusicserver.entity.TestEntity;
import org.springframework.stereotype.Service;

/**
 * @author hermit
 * @data 2021/6/23
 */
@Service
public class TestService extends ServiceImpl<TestDao, TestEntity> {


    public Page<TestEntity> selectTestPage(Page<TestEntity> page, Integer state) {
        page.setRecords(baseMapper.selectTestPage(page, state));
        return page;
    }
}
